package com.javatribe.introduction.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.joda.time.DateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wzp
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_management")
@ApiModel(value="Management对象", description="")
public class Management implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "部落职位")
    private String position;

    @ApiModelProperty(value = "届数")
    private Integer sessions;

    @ApiModelProperty(value = "是否是队长")
    @TableField(value = "is_leader")
    private Integer isLeader;

    @ApiModelProperty(value = "任职时间")
    @TableField(value = "work_time")
    private String workTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

//    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
//    @TableLogic
//    private Integer isDeleted;

}
